package com.yanshaohui.springboot;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.yanshaohui.springboot.pinyin.Chinese;

@SpringBootApplication
public class SpringbootTechnicalIdentificationApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootTechnicalIdentificationApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		System.out.println("①================================");
		Chinese cn = new Chinese();
		String testStr1 = "把百度设为主页关于百度About  Baidu百度推广";
		String testStr2 = "接入微信开放平台，让你的移动应用支持微信分享、微信收藏和微信支付。";
		String testStr3 = "我是严少辉，大家早上好，今天是2017年6月29日星期四";
		
		String pinyin1 = cn.getStringPinYin(testStr1);
		String pinyin2 = cn.getStringPinYin(testStr2);
		String pinyin3 = cn.getStringPinYin(testStr3);
		
		System.out.println(testStr1);
		System.out.println(pinyin1);
		System.out.println("---------------------------------");
		System.out.println(testStr2);
		System.out.println(pinyin2);
		System.out.println("---------------------------------");
		System.out.println(testStr3);
		System.out.println(pinyin3);
		System.out.println("---------------------------------");
		
		System.out.println("②================================");
		System.out.println("③================================");
		System.out.println("④================================");
	}
}
